package com.mall.mallDemo.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.mall.mallDemo.pojo.ShoppingCart;
import com.mall.mallDemo.vo.CartVo;

import java.util.List;

public interface ShoppingCartService extends IService<ShoppingCart> {

    public List<CartVo> getCartByUserId(String userId);

    public CartVo addCart(String productId, String userId);

    public CartVo getCartVo(ShoppingCart cart);

    public void deleteCart(String cartId, String userId);

    public void updateCartNum(String cartId, String userId, String num);


}
